package entitys

type PayStatus uint8
type PayType uint8
type OrderStatus uint8

var (
	WechatPay PayType = 1
	Alipay            = 2
)
var (
	PayStatusWaitPay PayStatus = 0
	PayStatusPaid              = 1
)

func GetPayStatusText(status PayStatus) string {
	switch status {
	case 0:
		return "待支付"
	case 1:
		return "已付款"
	}
	return "未知状态"
}
func GetPayTypeText(payType PayType) string {
	switch payType {
	case 0:
		return "微信支付"
	case 1:
		return "支付宝"
	}
	return "未知"
}

type ProductSnapShoot struct {
	ProductID          int     `json:"product_id"`
	ProductThumb       string  `json:"product_thumb"`
	ProductName        string  `json:"product_name"`
	ProductOriginPrice float32 `json:"product_origin_price"`
	ProductActualPrice float32 `json:"product_actual_price"`
	Number             int     `json:"number"`
	OriginalTotalPrice float32 `json:"original_total_price"`
	ActualTotalPrice   float32 `json:"actual_total_price"`
}
